# for循环
num = 0
for i in range(1,11):
    num = num+i
print(num)

# 读text文件
# \\ 需要转义    # 文本的需要注意
file = open("e:\\Desktop\\test.txt",'r',encoding='utf-8')
for x in file:
    # print(x)
    print(x,end="")
print()
file.close()
# 拆分函数
a = "zhangsan,lisi,wenbin"
b = a.split(",")
for i in b:
    print(i)
# 读列表
file = open("e:\\Desktop\\test.txt",'r',encoding='utf-8')
a = file.readlines()
for i in range(1, len(a)):
    print(a[i],end="")
file.close()